<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>增加考勤记录</title>
<link href="<c:url value='/insdep/reset.min.css' />" rel="stylesheet" type="text/css">
<link href="<c:url value='/insdep/easyui_full.css'/>" rel="stylesheet" type="text/css">
<link href="<c:url value='/insdep/icon.css'/>" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<c:url value='/insdep/jquery-1.11.3.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/insdep/jquery.easyui-1.5.2.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/insdep/insdep-extend.min.js'/>"></script>
<link rel="stylesheet" type="text/css" href="<c:url value='/insdep/iconfont/iconfont.css' />">
<link href="<c:url value='/css/wsf-button.css'/>" rel="stylesheet" type="text/css">
</head>
<body>
	<script type="text/javascript">
	$(function(){
		/*
		 *初始化考勤类型combobox
		 */
		$('#create_check_work_atttype_cbbox').combobox({    
		    url:'find_AllAttType',    
		    valueField:'attypeId',    
		    textField:'attypeName',
		    editable:false, 
	        value:'1'
		}); 
		/*
		 *关闭窗口
		 */
		$("#create_check_work_close").linkbutton({
			onClick:function(){
				$("#create_check_work_record_win").window('close');
			}
		});
		 /*
		  *保存信息
		  */
		 $("#create_check_work_save").linkbutton({
			onClick:function(){
				$("#create_check_work_form").form({
					onSubmit: function(param){
						return $(this).form("validate");//验证
					},
					success: function(info){
						$("#create_check_work_record_win").window('close');
						$('#check_work_emp_info_dg').datagrid('reload');  
					}
				}).submit();
			} 
		 });
	});
	</script>
	<form id="create_check_work_form" action="add_CheckWorkRecord" method="post">
		<div style="margin: 20px;">
			实上班：<input id="create_check_work_attstarttime" name="attendanceOffworktime" class="easyui-timespinner" style="width:80px;">
		</div>
		<div style="margin: 20px;">
			实下班：<input id="create_check_work_attendtime" name="attendanceOnworktime" class="easyui-timespinner" style="width:80px;">
		</div>
		<div style="margin: 20px;">
			考勤类型：<input id="create_check_work_atttype_cbbox" name="attypeid">  
		</div>
		<div>
			<input type="hidden" name="empId">
		</div>
		<div style="margin: 20px 105px;position: relative;top:150px;">
			<a id="create_check_work_save" class="easyui-linkbutton" data-options="iconCls:'icon-save'" >保存</a>
			<a id="create_check_work_close" class="easyui-linkbutton" data-options="iconCls:'icon-no'" style="margin-left:30px;">取消</a>
		</div>
	</form>
</body>
</html>